package com.huc.ribbon.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huc.ribbon.user.feign.UserFeignClient;

@RestController
@RequestMapping("user")
public class UserConroller {
	
	@Autowired
	private UserFeignClient userFeignClient;

	@GetMapping("findUserByName")
	public String findUserByName(Long userId) {
		return userFeignClient.findUserByName(userId);
	}
	
}
